﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common.Domain;

namespace YYSite.Domain.System.Permissions
{
   public class Permission:EntityBase
    {
        /// <summary>
        /// 上级编码
        /// </summary>
        public virtual Guid? ParentId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Name { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public virtual string DisplayName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Description { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        public virtual string Area { get; set; }
        /// <summary>
        /// 控制器
        /// </summary>
        public virtual string Controller { get; set; }
        /// <summary>
        /// 控制器
        /// </summary>
        public virtual string Action { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public virtual string Url { get; set; }

        /// <summary>
        /// 按钮，导航菜单
        /// </summary>
        public virtual int Type { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public virtual string Icon { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public virtual int Sequence { get; set; }
        public virtual ISet<Permission> Permissions { get; set; }
        public virtual Permission ParentPermission { get; set; }
    }
}
